﻿#include "CmdSavePostMarkerExportTableData.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSavePostMarkerExportTableData::CmdSavePostMarkerExportTableData()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSavePostMarkerExportTableData::~CmdSavePostMarkerExportTableData()
    {
    }

    bool CmdSavePostMarkerExportTableData::execute()
    {
        emit IBaseSignalInstance->signal_savePostMarkerExportTableData(m_windowUniversalID, m_fileName);
        return true;
    }

    void CmdSavePostMarkerExportTableData::undo()
    {
    }

    void CmdSavePostMarkerExportTableData::redo()
    {
        // execute();
    }

    void CmdSavePostMarkerExportTableData::savePostMarkerExportTableData(int windowUniversalID, QString fileName)
    {
        m_windowUniversalID = windowUniversalID;
        m_fileName = fileName;
    }

} // namespace PostCommand
